﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebMaster.master" AutoEventWireup="True" 
    Codebehind="AddNewManual.aspx.cs" Inherits="meter_AddNewManual" Theme="DefaultSkin"%>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="panelEnter" runat="server">
        <p>Hi <asp:LoginName ID="LoginName1" runat="server" />, please use the form 
		below to add a new electricity meter,<br />or to update the details of an existing one. 
        </p>
        <p>Name:<asp:textbox id="txtMeterName" runat="server" Width="300px" CssClass="textBox"></asp:textbox>
		    <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtMeterName"></asp:requiredfieldvalidator>
            <asp:ValidatorCalloutExtender ID="RequiredFieldValidator1_ValidatorCalloutExtender" 
                runat="server" Enabled="True" TargetControlID="RequiredFieldValidator1">
            </asp:ValidatorCalloutExtender>
        </p>
        <p>
            <asp:CheckBox ID="chkPrivate" runat="server" 
                Text="Remove my data from group totals" 
                TextAlign="Left" oncheckedchanged="chkPrivate_CheckedChanged" />
        </p>        
        <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Add" CssClass="buttonStyle" />
        
        <p>
            &nbsp;<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
        </p>
    </asp:Panel>
    <asp:Panel ID="panelSaved" runat="server">
        <p>Thanks, you have saved your meter <asp:Label ID="lblNewMeter" runat="server" >
        </asp:Label> details. Why not <asp:HyperLink ID="hypAddReading" runat="server">add</asp:HyperLink>&nbsp;some readings?</p>
        
        <p>Click <asp:HyperLink ID="hypUpdate"  runat="server">here</asp:HyperLink> to update the meter details.</p>

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    </asp:Panel>
</asp:Content>

